package pimpserver;

public class Main
{
    public static void main(String[] args)
    {
        int port = 5000;
		Server server;
        if(args.length == 0)
            server = new Server(port,true);
        if(args.length == 1)
            server = new Server(new Integer(args[0]),true);
        if(args.length == 2)
            server = new Server(new Integer(args[0]),new Boolean(args[1]));
        // if too many arguments try to take the first two
        if(args.length > 2)
            server = new Server(new Integer(args[0]),new Boolean(args[1]));
    }

}
